package com.example.myapplication.ui.dashboard;

import android.util.Log;
import android.view.View;
import android.widget.Button;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

import com.example.myapplication.control.SystemInfo;

public class DashboardViewModel extends ViewModel {

    private final MutableLiveData<String> mText;
    public SystemInfo systemInfo = new SystemInfo();
    public DashboardViewModel() {

        mText = new MutableLiveData<>();
        int info = systemInfo.initServer("192.168.1.83",1235);

        mText.setValue(String.valueOf(info));

        Log.d("MutableLiveData",mText.getClass().getName());

    }



    public LiveData<String> getText() {
        return mText;
    }
}